<link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/form.css" rel="stylesheet" type="text/css" />
<link href="<?php echo Yii::app()->theme->baseUrl ?>/css/jquery-ui.css" type="text/css" rel="stylesheet">
<script src="<?php echo Yii::app()->theme->baseUrl ?>/js/bootstrap-tokenfield/bootstrap-tokenfield.js"></script>
   <link href="<?php echo Yii::app()->theme->baseUrl ?>/js/bootstrap-tokenfield/css/tokenfield-typeahead.css" type="text/css" rel="stylesheet">
    <!-- Tokenfield CSS -->
    <link href="<?php echo Yii::app()->theme->baseUrl ?>/js/bootstrap-tokenfield/css/bootstrap-tokenfield.css" type="text/css" rel="stylesheet">

<div class="row">
	<div class="col-md-12">
		<div class="box box-primary">
            <div class="box-header">
                <h3 class="box-title">Trích xuất hóa đơn của thành viên: <?php echo $model->ten; ?>, mã số: <?php echo $model->ma_so ?></h3>
            </div><!-- /.box-header -->
			<?php $form=$this->beginWidget('CActiveForm', array(
				'id'=>'taikhoan-form',
				'enableAjaxValidation'=>false,
			)); ?>
				<div class="box-body">	
					<?php $this->widget('DoiTac.components.AutocompleteWidget',array('id'=>'doitac','action'=>Yii::app()->createUrl("/DoiTac/default/load"),'form'=>$form,'model'=>$model));  ?>
					<div class="form-group">
						<?php echo $form->labelEx($model,'Trạng thái thanh toán'); ?>
						<?php echo CHtml::dropDownList('Khachhang[trangthai_thanhtoan]','',  
                                    array(
                                        ''=>'Tất cả',
                                        '0'=>'Chưa thanh toán',
                                        '1'=>'Thanh toán 1 phần',
                                        '2'=>'Đã thanh toán',
                                    ),array('class'=>'form-control')); 
                        ?>
						<?php echo $form->error($model,'trangthai_thanhtoan'); ?>
					</div>
					<div class="form-group">
						<?php echo $form->labelEx($model,'so_luong'); ?>
						<?php echo $form->textField($model,'so_luong',array('class'=>'form-control','placeholder'=>'Số lượng triết xuất','size'=>50,'maxlength'=>50)); ?>
						<?php echo $form->error($model,'so_luong'); ?>
					</div>
					<div class="form-group buttons">
						<?php echo CHtml::submitButton("Tạo file excel"); ?>
					</div>
				</div>
			<?php $this->endWidget(); ?>
		</div>
	</div>
</div><!-- form -->
<script type="text/javascript">
$(document).on('keyup keypress', '#loai_hinh_kinhdoanh-tokenfield', function(e) {
  if(e.which == 13) {
    e.preventDefault();
    return false;
  }
});
</script>